FROM node:18-alpine as builder
WORKDIR /app
COPY . .
RUN npm install -g nuxt
RUN npm i
RUN npm ci
RUN npm run build

FROM node:18-alpine
WORKDIR /app
COPY --from=builder /app ./
EXPOSE 3000
CMD ["npm", "run", "start"]
